package com.naiterui.ehp.bs.patient.service;

import com.naiterui.ehp.bp.support.exception.BusinessException;
import com.naiterui.ehp.bp.utils.payment.bo.UnifiedOrderResultBO;
import com.naiterui.ehp.bs.patient.vo.AddVideoConsultVO;

/**
 * @author luao
 * @date 2021/2/26 11:06 上午
 **/
public interface IVideoConsultService {

    /**
     * 开启视频
     *
     * @param patientId
     * @param doctorId
     * @return
     */
    Integer startVideo(Long patientId, Long doctorId) throws BusinessException;

    /**
     * 视频咨询支付
     *
     * @param patientId
     * @param ip
     * @param origin
     * @return
     * @throws BusinessException
     */
    UnifiedOrderResultBO addPatientVideoConsultPayInfo(Long patientId, AddVideoConsultVO addVideoConsultVO, String ip,
        Integer origin) throws BusinessException;

    /**
     * 支付成功回调
     * @param orderSn
     */
    void payNotify(String orderSn, Integer payStatus);

    /**
     * 退款回调
     *
     * @param orderSn
     * @param refundStatus
     */
    void refundNotify(String orderSn, Integer refundStatus);
}
